# -*- coding: utf-8 -*-
class Util
  def initialize
    
  end

  #提交参数的预处理
  def self.paramsPreprocesseToHash(paramsData)
    #去掉二端的"号
    #    data = data[1,data.length-2]
    paramsData = paramsData.gsub(/\\\"/,"\"")
    paramsData = paramsData[1,paramsData.length-2]
    #paramsData = paramsData.gsub(/\\u/,"u")
    paramsData = paramsData.gsub(/\\\\/,"\\")
    paramsHash = JSON.parse paramsData
    return paramsHash
  end
end
